package com.inossem.warehousestorage_inossem.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.inossem.warehousestorage_inossem.R;
import com.inossem.warehousestorage_inossem.activity.base.BaseActivity;
import com.inossem.warehousestorage_inossem.utils.SPUtils;

public class WelcomeActivity extends BaseActivity {

    @Override
    protected void onCreateImpl(Bundle savedInstanceState) {
        setContentView(R.layout.activity_welcome);
        initView(WelcomeActivity.this);
        initData(WelcomeActivity.this);
        boolean loginFlag = SPUtils.getLoginFlag(WelcomeActivity.this);
//        boolean loginFlag = true;
        Intent intent = new Intent();
        if (loginFlag) {
            intent.setClass(WelcomeActivity.this, MainActivity.class);
        } else {
            intent.setClass(WelcomeActivity.this, LoginActivity.class);
        }
        startActivity(intent);
        finish();
    }

    private void initView(Activity activity) {

    }

    private void initData(Activity activity) {

    }
}
